home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / fish / 001-100 / 001-025 / 004 / bm / putusage.c < prev    next >
C/C++ Source or Header  |  1995-03-17  |  768b  |  27 lines

  1. #include <stdio.h>
  2. PutUsage()
  3. {
  4.     fprintf(stderr,
  5.     "bm: search for a given string or strings in a file or files\n");
  6.     fprintf(stderr,
  7.     "synopsis: bm [option]* [string(s)] [file]*\n");
  8.     fprintf(stderr,
  9.     "options:\n");
  10.     fprintf(stderr,
  11.     "-c print only a count of matching lines \n");
  12.     fprintf(stderr,
  13.     "-e Take next argument as the pattern\n");
  14.     fprintf(stderr,
  15.     "-f PFile read patterns from a file PFile\n");
  16.     fprintf(stderr,
  17.     "-h Do not print file names\n");
  18.     fprintf(stderr,
  19.     "-l print a list of files containing the pattern(s) \n");
  20.     fprintf(stderr,
  21.     "-n print the character offset of the pattern(s) \n");
  22.     fprintf(stderr,
  23.     "-s silent mode. Return only success (0) or failure (1)\n");
  24.     fprintf(stderr,
  25.     "-x print only lines which match entirely \n");
  26. } /*PutUsage */
  27.